package com.antler.smt.portal.mapper;

import com.antler.smt.entity.OrderCommentEntity;
import com.antler.smt.response.portal.GetOrderCommentListResp;
import org.hibernate.validator.constraints.URL;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  订单评价Mapper
 *
 * @author zhangyi
 * @date 2018-04-18 11:59
 */
@Repository
public interface OrderCommentInfoMapper {

    /**
     * 获取订单列表
     *
     * @return
     */
    List<GetOrderCommentListResp> getOrderCommentList();

    /**
     *  显示采购商当前的评价信息
     *
     * @param orderId
     * @return
     */
    GetOrderCommentListResp getOrderInfoByOrderIdShowPurchaser(Long orderId);

    /**
     * 获取服务商的评价信息
     *
     * @param supplierId
     * @return
     */
    List<GetOrderCommentListResp> getValidOrderComment(Long supplierId);

    /**
     * 获取自增主键
     *
     * @return
     */
    Long getPrimaryKey();
}